<template>
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <div class="nav-content">
      <div class="logo">
        <img src="../assets/loo.png" alt="logo">
      </div>
      <div class="more">
        <img src="../assets/gengduo_1.svg" alt="more">
      </div>
    </div>
  </nav>



</template>

<script setup>
import { ref, computed } from 'vue'
import { useRouter, useRoute } from 'vue-router'

const router = useRouter()
const route = useRoute()

const currentPath = computed(() => route.path)

const navItems = [
  { path: '/mood', text: '心情', icon: 'icon-mood' },
  { path: '/analysis', text: '分析', icon: 'icon-analysis' },
  { path: '/my', text: '我的', icon: 'icon-my' }
]

const navigate = (path) => {
  router.push(path)
}
</script>

<style scoped lang="less">
/* 移动端样式 */

@media screen and (max-width: 600px) {
  .nav-content {
    height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .logo{
    img{
    width: 100px;
  }
  }

}
}

// pc
@media screen and (min-width: 601px) {
  .nav-content {
    width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .logo{
    img{
    width: 150px;
  }
  }

}
}

</style>